package com.api.shopapi.service;

import com.api.shopapi.entity.NursingRecord;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public interface NursingRecordService {

    int  insert( NursingRecord nursingRecord);

    int  update(NursingRecord nursingRecord);

    int  delete(String nursingRecordCode);

    PageInfo<NursingRecord> getPageList(int pageIndex, int pageSize, String institutionCode);

    NursingRecord getByNursingRecordCode(String nursingRecordCode);

    PageInfo<NursingRecord> getPageListByElderlyCode(int pageIndex, int pageSize, String elderlyCode);

    List<NursingRecord> listByElderlyCodeTime(String elderlyCode, Date beginTime, Date endTime);

    PageInfo<NursingRecord> pageByGovCode(int pageIndex, int pageSize, String governmentCode);

    List<NursingRecord> listByGovCodeStatus(String governmentCode, int status);


    List<NursingRecord> listByMedicinerCode(String medicinerCode,int status);

    List<NursingRecord> listByNurseCode(String nurseCode,int status);

    List<NursingRecord> listByNurseAideCode(String nurseAideCode,int status);


    PageInfo<NursingRecord> pageByMedicinerCode(int pageIndex, int pageSize, String medicinerCode,int status);

    PageInfo<NursingRecord> pageByNurseCode(int pageIndex, int pageSize, String nurseCode,int status);

    PageInfo<NursingRecord> pageByNurseAideCode(int pageIndex, int pageSize, String nurseAideCode,int status);

    PageInfo<NursingRecord> pageByInstitutionCode(int pageIndex, int pageSize, String institutionCode,int status);


}
